-- || Created by Unlimited

local px, py = 1920, 1080
local x, y = (screenWidth/px), (screenHeight/py)

local show = false

addCommandHandler("damage", function()
	show = ( not show )
end)

addEventHandler("onClientRender", getRootElement(), function()
	local curKills = getElementData(localPlayer, "Kills")
	local curDamage = getElementData(localPlayer, "Damage")
	dxDrawRectangle(x*1762, y*495, x*148, y*91, tocolor(0, 0, 0, 168), false)
	dxDrawLine(x*1762, y*540, x*1909, y*540, tocolor(255, 255, 255, 255), 1, false)
	dxDrawText("Damage: "..( curDamage or 0 ), x*1762, 495, x*1909, y*540, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
	dxDrawText("Kills: "..( curKills or 0), x*1763, 540, x*1910, y*585, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
end)